<template>
    <div>
        <div v-if="arr!==null&&arr.length===2">
            <div style="padding-bottom:8px">
                {{ arr[0][words] }}
            </div>
            <div class="table-line-diy"></div>
            <div style="padding-top:8px">
                {{ arr[1][words] }}
            </div>
        </div>
        <div v-else-if="arr!==null&&arr.length===1">
            {{ arr[0][words] }}
        </div>
        <div v-else>

        </div>
    </div>
</template>
<script>
export default {
    props: {
        arr: {
            type: Array,
            required: true
        },
        words: {
            type: String,
            required: true
        }
    }
};
</script>
<style lang="scss" scoped>
.table-line-diy {
    width: 100%;
    height: 1px;
    background: #ebeef5;
    position: absolute;
    left: 0;
    top: 50%;
}
</style>